//
//  JingDianCell.m
//  Trip
//
//  Created by dlios on 15-7-14.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "JingDianCell.h"

@implementation JingDianCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.images = [[UIImageView alloc] init];
        [self.contentView addSubview:_images];
        self.label = [[UILabel alloc] init];
        self.label.font = [UIFont systemFontOfSize:20];
//        self.label.textAlignment = NSTextAlignmentCenter;
        [self.images addSubview:_label];
        self.label1 = [[UILabel alloc] init];
        self.label1.font = [UIFont systemFontOfSize:12];
//        self.label1.textAlignment = NSTextAlignmentCenter;
        [self.images addSubview:_label1];
        
        //        [_label release];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.images.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    self.label.frame = CGRectMake(5, 5, self.frame.size.width, 20);
    self.label1.frame = CGRectMake(5, 25, self.frame.size.width, 20);
}
@end
